package sanrenxing.dayEnd.backRepertoryTotal.domain;

import java.io.Serializable;

/**
 * 功能：证券应收应付库存的实体类
 * 作者：赵思睿
 * 日期：2021/3/16 0016-11:15
 * 版本：1.0
 */
public class SecRecAndPayStock implements Serializable {
    //证券应收应付库存编号
    private int securId;
    //证券信息编号
    private String seId;
    //基金编号
    private String fundId;
    //业务类型
    private String businType;
    //业务日期
    private String dates;
    //总金额
    private double sumMoney;
    //证券数量
    private int secNum;
    //业务状态
    private int businStat;
    //现金账户编号
    private int caId;

    /**
     * 默认构造方法
     */
    public SecRecAndPayStock() {
    }

    /**
     * 带参构造方法
     * @param securId 证券应收应付库存编号
     * @param seId 证券信息编号
     * @param fundId 基金编号
     * @param businType 业务类型
     * @param dates 业务日期
     * @param sumMoney 总金额
     * @param businStat 业务状态
     */
    public SecRecAndPayStock(int securId, String seId, String fundId, String businType, String dates, double sumMoney,int secNum, int businStat,int caId) {
        this.securId = securId;
        this.seId = seId;
        this.fundId = fundId;
        this.businType = businType;
        this.dates = dates;
        this.sumMoney = sumMoney;
        this.secNum=secNum;
        this.businStat = businStat;
        this.caId=caId;
    }

    //自动生成的setter/getter方法
    public int getSecurId() {
        return securId;
    }

    public void setSecurId(int securId) {
        this.securId = securId;
    }

    public String getSeId() {
        return seId;
    }

    public void setSeId(String seId) {
        this.seId = seId;
    }

    public String getFundId() {
        return fundId;
    }

    public void setFundId(String fundId) {
        this.fundId = fundId;
    }

    public String getBusinType() {
        return businType;
    }

    public void setBusinType(String businType) {
        if(businType.trim().equals("")){
            this.businType=null;
        }else this.businType = businType;
    }

    public String getDates() {
        return dates;
    }

    public void setDates(String dates) {
        if(dates.trim().equals("")){
            this.dates=null;
        }else this.dates = dates.split(" ")[0];
    }

    public double getSumMoney() {
        return sumMoney;
    }

    public void setSumMoney(double sumMoney) {
        this.sumMoney = sumMoney;
    }

    public int getSecNum() {
        return secNum;
    }

    public void setSecNum(int secNum) {
        this.secNum = secNum;
    }

    public int getBusinStat() {
        return businStat;
    }

    public void setBusinStat(int businStat) {
        this.businStat = businStat;
    }

    public int getCaId() {
        return caId;
    }

    public void setCaId(int caId) {
        this.caId = caId;
    }
}
